<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of CssHelper
 *
 * @author Matej
 */
class CssHelper extends Zend_View_Helper_Abstract {
    
    function cssHelper() {
        $request = Zend_Controller_Front::getInstance()->getRequest();
        $file_uri = 'public/css/' . $request->getControllerName() . '/' . $request->getActionName() . '.css';
       
        if (file_exists($file_uri)) {
            $this->view->headLink()->appendStylesheet('/' . $file_uri);
        }
       
        return $this->view->headLink();       
    }
    
}
